package com.fita.entity.order.reverse;

import com.demo2do.core.utils.Alias;

/**
 * @description: 反向订单类型
 * @author: 11200
 * @date: 2019/8/21
 */
@Alias("reverseOrderType")
public enum  ReverseOrderType {

    HOTEL("精选酒店"),

    AVIATION("机票预订"),

    CRUISES("豪华邮轮"),

    CUSTOM_JOURNEY("定制行程");

    private String description;

    ReverseOrderType(String description) {
        this.description = description;
    }

    public boolean couldShowEnquiry(){
        return !this.equals(AVIATION);
    }

    /**
     *
     * @return
     */
    public boolean isAviation(){
        return this.equals(AVIATION);
    }

    /**
     *
     * @return
     */
    public boolean isCustomJourney(){
        return this.equals(CUSTOM_JOURNEY);
    }

    /**
     *
     * @return
     */
    public boolean isHotel(){
        return this.equals(HOTEL);
    }

    /**
     *
     * @return
     */
    public boolean isCruises(){
        return this.equals(CRUISES);
    }

    /**
     * 是否可以直接创建反向订单
     * @return
     */
    public boolean canDirectCreateReverseOrder() {

        return (this.isAviation() || this.isCustomJourney());
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
